package com.linjj.seckill.service.impl;

import com.linjj.seckill.domain.City;
import com.linjj.seckill.domain.Province;
import com.linjj.seckill.mapper.AddressMapper;
import com.linjj.seckill.service.IAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class AddressService implements IAddressService {
    @Autowired
    private AddressMapper addressMapper;
    @Override
    public List<Province> getProvinces() {
        return addressMapper.queryProvinces();
    }

    @Override
    public List<City> getCitys(long pid) {
        return addressMapper.queryCitys(pid);
    }
}
